.class final Llt/noframe/gpsfarmguide/dialogs/DialogEditGroups$3;
.super Ljava/lang/Object;
.source "DialogEditGroups.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Llt/noframe/gpsfarmguide/dialogs/DialogEditGroups;->show(Landroid/content/Context;Llt/noframe/gpsfarmguide/models/GroupModel;Llt/noframe/gpsfarmguide/dialogs/DialogEditGroups$OnGroupChanged;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation


# instance fields
.field final synthetic val$editText:Landroid/widget/EditText;

.field final synthetic val$group:Llt/noframe/gpsfarmguide/models/GroupModel;

.field final synthetic val$listener:Llt/noframe/gpsfarmguide/dialogs/DialogEditGroups$OnGroupChanged;


# direct methods
.method constructor <init>(Llt/noframe/gpsfarmguide/models/GroupModel;Landroid/widget/EditText;Llt/noframe/gpsfarmguide/dialogs/DialogEditGroups$OnGroupChanged;)V
    .locals 0

    .line 57
    iput-object p1, p0, Llt/noframe/gpsfarmguide/dialogs/DialogEditGroups$3;->val$group:Llt/noframe/gpsfarmguide/models/GroupModel;

    iput-object p2, p0, Llt/noframe/gpsfarmguide/dialogs/DialogEditGroups$3;->val$editText:Landroid/widget/EditText;

    iput-object p3, p0, Llt/noframe/gpsfarmguide/dialogs/DialogEditGroups$3;->val$listener:Llt/noframe/gpsfarmguide/dialogs/DialogEditGroups$OnGroupChanged;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 1

    .line 60
    iget-object p2, p0, Llt/noframe/gpsfarmguide/dialogs/DialogEditGroups$3;->val$group:Llt/noframe/gpsfarmguide/models/GroupModel;

    iget-object v0, p0, Llt/noframe/gpsfarmguide/dialogs/DialogEditGroups$3;->val$editText:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2, v0}, Llt/noframe/gpsfarmguide/models/GroupModel;->setName(Ljava/lang/String;)V

    .line 61
    iget-object p2, p0, Llt/noframe/gpsfarmguide/dialogs/DialogEditGroups$3;->val$listener:Llt/noframe/gpsfarmguide/dialogs/DialogEditGroups$OnGroupChanged;

    iget-object v0, p0, Llt/noframe/gpsfarmguide/dialogs/DialogEditGroups$3;->val$group:Llt/noframe/gpsfarmguide/models/GroupModel;

    invoke-interface {p2, v0}, Llt/noframe/gpsfarmguide/dialogs/DialogEditGroups$OnGroupChanged;->onNameChanged(Llt/noframe/gpsfarmguide/models/GroupModel;)V

    .line 62
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    return-void
.end method
